/**
 * Created by candy on 2018/4/22.
 */
//index 页面的js操作
var PageIndex = PageIndex || {
        init: function () {
            PageIndex.initSwiperFun();
        },

        /**
         * 轮播图初始化
         */
        initSwiperFun: function () {
            var mySwiper = new Swiper('.swiper-container', {
                autoplay: {
                    delay: 2000,
                    disableOnInteraction: false,
                },
                loop: true,
                // 分页器设置
                pagination: {
                    el: '.swiper-pagination',
                    bulletClass: 'my-swiper-pagination-customs',
                    bulletActiveClass: 'my-swiper-pagination-customs-active',
                },
            });
        }

    }
$(function () {
    PageIndex.init();
})

